package com.ams.thread.lesson5;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @author： 乐哥聊编程(全平台同号)
 */
@Slf4j
public class Example15 {
    private static Lock lock = new ReentrantLock();
    public static void main(String[] args) {
        lock.lock();
        try{

        }finally {
            lock.unlock();
        }
    }
}
